home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Diamond Collection / The Diamond Collection (Software Vault)(Digital Impact).ISO / cdr13 / ce318e.zip / MANUAL < prev    next >
Text File  |  1995-02-01  |  18KB  |  373 lines

  1.  
  2.  
  3.  
  4.                      *******************************
  5.                      *                             *
  6.                      *  CMEditor -- Version 3.18c  *
  7.                      *                             *
  8.                      *******************************
  9.  
  10.  
  11. CMEditor USER'S MANUAL:
  12.  
  13. Background:
  14.  
  15.    CMEditor was originally written as the editor module for CMFiler, my
  16. multipurpose disk/file manager designed to bring together and simplify
  17. 99% of the file management functions you would ever need.  I eventually
  18. broke out a standalone version at the urging of several users.  If you
  19. find CMEditor useful and continue to use it beyond a 60-day evaluation
  20. period, I require that you register your copy for $10.  Please read the
  21. section on registration, and note the benefit of receiving on-disk a
  22. registered copy of the current version of CMEditor, a copy of the
  23. shareware version of CMFiler for your evaluation, and, by permission of
  24. the author, a copy of the shareware version of Integrity Master, the
  25. outstanding anti-virus and system integrity program by Wolfgang Stiller.
  26. Note that the versions of CMFiler and Integrity Master provided in this
  27. offer are for your evaluation and MUST be registered for the fee required
  28. by the author if you continue to use them beyond a fixed evaluation
  29. period.
  30.  
  31. Running CMEditor. . .
  32.  
  33.    First, you may rename CMEDITOR.COM to CE.COM, to reduce the number
  34. of keystrokes required to run it.  For convenience, I will refer to CMEditor
  35. as CE from here on.  Execute CE from the DOS prompt with the following
  36. command line (brackets indicated optional parameters)::
  37.  
  38.    CE FILESPEC [@Monitor[Screenlines][:Palette[Border]]] [-View]
  39.  
  40.      where:
  41.  
  42.      FILESPEC is the specification of the file to be edited,
  43.  
  44.                            CMEditor - 1
  45.      Monitor is the letter V,C,M,E,T or L, where:
  46.           V=VGA, C=CGA/EGA, M=Monochrome, E=Epson LCD or equivalent,
  47.           T=Tandy LCD or equivalent, and L=generic LCD display,
  48.      ScreenLines=25, 43 or 50 (supported if monitor is VGA-capable),
  49.      Palette=1,2,3 or 4, where:
  50.           1=white on blue, 2=cyan on black, 3=blue on white, 4=white on black,
  51.      Border is the letter b if screen border is to be painted (VGAs only),
  52.  
  53.      View is the letter v if file is to be viewed only, not edited.
  54.  
  55.    CE automatically saves the monitor information for reuse the next time it
  56. is run, in an internal configuration area, so once you get the video display
  57. the way you like it, you need never again include the video display parameters.
  58.  
  59.    The following command lines are examples of legal syntax:
  60.  
  61.    ce letter.txt
  62.    CE LETTER.TXT @V43:2
  63.    ce c:\letters\my-ltr.doc @v50:1b -v
  64.    CE my-ltr.doc @c:3
  65.  
  66. Record Delimiters. . .
  67.  
  68.    The default color display mode for "record delimiters" [carriage
  69. return (CR), line feed (LF), and the combinations CR+LF and LF+CR] is to
  70. show their color values, which are cued in the legend at the bottom
  71. (blue=CR, green=LF, cyan=CR+LF, magenta=LF+CR). In addition, the end of
  72. the file is denoted with a red End-of-File (EOF) mark. Sometimes it is
  73. very useful to know exactly what delimiter combination your word
  74. processors use, so you can duplicate it when you edit with CE. You can
  75. toggle the colored delimiter symbols off and on with Alt-Minus or the
  76. gray minus key. (This is also covered in a help screen you can get by
  77. pressing Alt-H or F1.)
  78.  
  79. Information Area. . .
  80.  
  81.    The name of the file being viewed is shown in the lower left prompt area.
  82. The lower right prompt area shows the ASCII value of the character at
  83. the cursor (decimal and hex), the position of that character in the
  84. file (starting with 1), the 
  85. line (called "record") the cursor is on, and the position of the cursor
  86.  
  87.                            CMEditor - 2
  88. within the line (called "Column", which for a long record is not
  89. necessarily the same as the screen 
  90. column).  This information display may be toggled off and on with Alt-Plus
  91. or the gray plus key.
  92.  
  93.    When the modifier key Alt- or Ctrl- is pressed, this information
  94. area displays the block, navigation and special editing commands enabled by
  95. the modifier key.
  96.  
  97. Line Wrapping. . .
  98.  
  99.    The default display mode is line wrapping, where any line longer than
  100. 80 characters is wrapped to the next screen line, so that all text is visible.
  101. This mode can be toggled between "Wrap" and "No Wrap" (see the Wr/NW at
  102. upper right for current status) with Alt-W.  In the NoWrap mode, each
  103. line longer than 80 characters simply extends off the screen to the right,
  104. but is accessible for viewing by putting the cursor on it and [Ctrl- or
  105. Shift-] Rt Arrow-ing (see below) to any place on the line.
  106.  
  107. Cursor Movement. . .
  108.  
  109.    The arrow keys, either on the cursor keypad or numeric keypad, move
  110. the cursor one line up or down and one character left or right.
  111. Ctrl-Left/Rt Arrow move left or right one word at a time, and
  112. Shift-Left/Rt Arrow and Home/End move to the beginning or end of the line,
  113. as in PCWrite. A second press of the Home/End key moves to the top/bottom
  114. of the page, and a third press moves to the beginning/end of the file
  115. contents in memory.
  116.  
  117.    PgDn/PgUp moves the display up or down one page frame (20, 38 or 45
  118. lines), and leaves the cursor on the same relative video line.
  119. Ctrl-PgUp/PgDn moves the display by 10 page frames for fast paging through
  120. a file. Shift-Up/Down Arrow moves to the top/bottom of the current
  121. page. Alt-B/E moves to the Beginning/End of the file contents in memory.
  122.  
  123.    The mouse moves the cursor similar to the arrow keys. A special
  124. mouse feature allows variable speed scrolling as well. Hold the right
  125. button down and move the cursor down a little bit. The file begins to
  126. scroll slowly up the screen. Move the mouse down a little more and the
  127. scroll rate increases, through a total of four speeds. Moving the mouse
  128. up reverses the direction.
  129.    
  130.    For very long files, exceeding available memory, the editor loads only
  131. as much as fits. When you get to the end of that section (i.e., the
  132. current "file contents in memory" referred to above), the next operation
  133. that asks for another page or line causes the editor to load in the
  134.  
  135.                            CMEditor - 3
  136. next section, remembering the file position of the start of the
  137. previous section so it can backtrack if you want. (It actually loads the
  138. next section with some overlap to the previous section, so that a little bit
  139. of backtracking does not result in reloading the whole previous section.)
  140. This "heel-and-toe" sequential loading is limited to 50 sections.
  141.  
  142. Find a String. . .
  143.  
  144.    Want to look for a particular word or string of characters?  The
  145. key combination Alt-F (for "Find") opens up a data window at the bottom for
  146. you to enter a short string.  After you press Enter, CE will find the
  147. first appearance of the string 
  148. from the current cursor position, and put the cursor on it. Alt-X (for
  149. "neXt") finds the next appearance, and can be used repeatedly until the
  150. string no longer appears, which is signalled at the bottom of the screen.
  151. The search process starts at the cursor location and goes, if necessary, to
  152. the end of the current file contents in memory.
  153.  
  154.    If the file is long and is being viewed by the editor module in sections
  155. as discussed above, only the current section in memory is available to the
  156. Find operator.  The search is case-insensitive.
  157.  
  158. Leading and Trailing Blanks in the Data Window. . .
  159.  
  160.    The data entry routine truncates leading and trailing blanks, but blanks
  161. may be included as leading or trailing characters by enclosing the string
  162. at either or both ends with quotes (") Suppose, for example, you wanted to
  163. find all of the appearances in a file of the word "mark", but not
  164. "remark". Press Alt-F and, in the data entry window enter: 
  165. Find string: >"mark               <.  This works for the replace string as 
  166. well.
  167.  
  168. Editing a File. . .
  169.  
  170.    Exit view mode with either Esc or Enter. The mouse left button is the
  171. same as Enter. (Note that any tags in the source panel are still there.)
  172. Now you are ready to edit!  Position the cursor on a file that you have
  173. an extra copy of somewhere, and press E (for Edit). CE again loads the
  174. selected file, but this time with an internal "switch" set which tells
  175. the editor module to support editing. (Or, in View mode, press Alt-S,
  176. for "Switch to edit".)
  177.  
  178.  
  179.                            CMEditor - 4
  180. Edit Mode Limitations. . .
  181.  
  182.    CE permits edit mode only if the file fits all at once into
  183. available memory, has fewer than 16,380 records, and (in NoWrap mode) has
  184. no record longer than 8190 bytes. CE will revert to view mode if
  185. these conditions are not all satisfied.  If you have a lot of memory tied up
  186. in resident programs or RAM disk/cache, then you may not be able to
  187. edit extremely large files. Chances are, however, that this will never be
  188. a practical limitation.
  189.  
  190. Typeover vs Insert. . .
  191.  
  192.    Look at the small reverse video box in the upper right corner of the
  193. screen.  "T/O" or "Ins", then CE is in edit mode. Toggle between typeover
  194. (T/O) and insert 
  195. (Ins) modes with the Insert key. Typing action is just like any word
  196. processor.  In typeover mode, the Bksp key does not pull the text left. This
  197. is to avoid unintentionally shortening the file when editing
  198. length-sensitive files, such as .COM and .EXE files.
  199.  
  200. Editing a Line. . .
  201.  
  202.    You operate on a line at a time, and the "normal" editing keys work -
  203. i.e. Bksp, Del, Tab, Shift-Tab, the unmodified and modified arrow
  204. keys discussed above, and any ASCII-code keys. To create a new line,
  205. just Shift-Arrow to the beginning or end of the current line, depending
  206. on whether you want the new line above or below the current one, and hit
  207. Enter. This inserts the default delimiter combination, CR+LF, into the text
  208. to set up a new line void of text, but ready for you to start typing.
  209. The combination Ctrl-Enter gives you a menu screen from which you may select
  210. a different record delimiter. Join two lines by deleting the record
  211. delimiter at the end of the first line to be joined. Delete a line with
  212. Ctrl-Y ("Yank"). Delete from the cursor to the end of the line with
  213. Ctrl-D. Delete a word and its associated whitespace with Ctrl-T.
  214.  
  215. More on Record Delimiters. . .
  216.  
  217.    On CGA/EGA/VGA monitors, the record delimiter appears as a single
  218. colored "blank" character at the end of the line, whether it is actually
  219. two characters (e.g., CR+LF) or one (e.g., LF). It may be deleted to join
  220. two lines, but not over-struck - it always pushes right, even when you are
  221. in typeover mode. The red "End-of-File" (EOF) marker is not actually part
  222. of your file, but rather is only a visual aid for you to see where the
  223.  
  224.                            CMEditor - 5
  225. text ends. When the cursor is on the EOF marker, the "byte number" in
  226. the legend corresponds to the number of the next character, if you were to
  227. type one. The EOF marker also always pushes right, and cannot be deleted. 
  228. The height of the cursor shows the status of the "Caps Lock" switch.
  229.  
  230. Alt- Keypad and Alt-N. . .
  231.  
  232.     Any ASCII code from 1 through 255 can be entered from the numeric
  233. keypad using the Alt- key modifier. A special combination is provided for
  234. ASCII zero ("NULL"), since Alt-Zero is not recognized by any keyboard drivers
  235. I have seen.  It is Alt-N (for "Null").
  236.  
  237. Changing Case . . .
  238.  
  239.    Pressing Ctrl-U/L/I on a letter forces it into upper or lower case,
  240. or inverts the case.
  241.  
  242. Block Operations. . . or the REAL Power of CE's Editor. . .
  243.  
  244.    All the block operations - there are six - are keyed to
  245. Alt-key combinations, and they are all intuitive (sort of). They are:
  246. Alt-{ Mark, Yank (delete), moVe, Copy, Print and Output }.     
  247.  
  248.  
  249. Marking a Block, and the Copy Buffer. . .
  250.  
  251.    You may also manipulate blocks of lines. First mark a block by putting
  252. the cursor on the first (or last) line of the block you want to do
  253. something with, press Alt-M (for "Mark"), move down (or up) with
  254. arrows, PgDn/Up, etc., and mark the last (or first) line of the block,
  255. again with Alt-M. The marked text is written into a dedicated internal
  256. copy buffer for later use. If you made a mistake, a third press of Alt-M
  257. clears the marks, but leaves the copy buffer intact. The contents of this
  258. copy buffer remain available for multiple use until a new block is marked.
  259. You may exit the editor back to the main module, and edit another file,
  260. and because the editor copy buffer is a dedicated chunk of RAM in the main
  261. and editor modules, the buffer is still intact.  Just copy it into the
  262. next file with Alt-C.
  263.  
  264.    When you are marking a block, note that the information box at the
  265. bottom left of the screen expands to show you the attributes of the
  266. marked block - the number of the first and last records marked, and the
  267.  
  268.                            CMEditor - 6
  269. number of bytes in the painted area. There is an arbitrary 32 KB limit on
  270. the copy buffer. The upper right-hand information box shows "Blk"
  271. (for "blocked") instead of "T/O" or "Ins", meaning that normal editing is
  272. not permitted while you have a block marked.
  273.  
  274. Delete, Copy, Move. . .
  275.  
  276.    Delete the block with Alt-Y ("Yank"). Or put the cursor in an unpainted
  277. area of the file, and copy the block into that area, just ahead of the
  278. line where you put the cursor, by pressing Alt-C ("Copy"). Or move it
  279. with Alt-V ("moVe"). As noted above, the block previously "marked" into
  280. the copy buffer is available for multiple use.  Just put the cursor where
  281. you want the block to be copied and hit Alt-C again.
  282.  
  283. Restoring from Inadvertent Block Deletion. . .
  284.  
  285.    If you just deleted a block in error, put the cursor where you want
  286. to restore it, and press Alt-C to copy the buffer back into the file.
  287.  
  288. Sending a Block of Text to the Printer. . .
  289.    
  290.    Print the copy buffer to the parallel printer with Alt-P ("Print"). 
  291. After printing, if you want a form feed, press Ctrl-F ("Form feed" - note
  292. the use of Ctrl- vice Alt- as the modifier key, since Alt-F was already
  293. used for "Find").
  294.    
  295. . . . or to a File. . .
  296.  
  297.    Finally, output the copy buffer to a file in the same path as the file
  298. being edited by pressing Alt-O (letter "O" for "Output"). A window opens at
  299. the bottom for typing the name of the file for CE to create (if it
  300. doesn't already exist) or append to if it does. (The file will be created
  301. or opened in the current directory on the default drive. Therefore
  302. the characters ":" and "\" will not be recognized.)
  303.  
  304. Replace and Global replace. . .
  305.  
  306.    In addition to the Alt-F "find" feature, there is an Alt-R "replace" and
  307. an Alt-G "global replace" feature. Just press Alt-R or Alt-G and enter the
  308. find and replace strings when prompted. (If you see a mistake in the
  309. find string while you are typing the replace string, just arrow back up a
  310. line and reedit it.) For Alt-R, CE will find the first match and ask you
  311. to confirm the replacement. It continues finding and requesting
  312.  
  313.                            CMEditor - 7
  314. confirmation until you press Q (for "Quit replacing") or Esc. Alt-X
  315. reactivates either the find or replace routine, whichever was used last.
  316. Alt-G replaces all appearances of the find string with no confirmation. It
  317. may be terminated with any key press. When global replace is thus
  318. terminated, Alt-X reactivates the confirmatory replace, not the global replace.
  319.  
  320. Leaving Edit Mode. . .
  321.  
  322.    After editing is complete, press Esc. When leaving the editor after
  323. editing an existing file, there are several decisions you have to make:
  324. 1) under what name to save the edited file; 2) whether to use the
  325. current date/time or the original date/time of the edited file as
  326. the save-file's date/time stamp; 3) whether to rename the original file so
  327. it is also saved; and 4) whether to return to the editor after the
  328. save operation.
  329.  
  330.    The default selections for these options - the ones most often used -
  331. are: 1) save the edited file under the original file's name; 2) do not
  332. reuse the original date/time stamp; 3) do not rename and save the
  333. original file; and 4) do not return to the editor. You can accept these
  334. default options by pressing Enter, or Y, or if you had hit Esc by mistake,
  335. you can press Esc again to return where you were in the editor. If the
  336. defaults are not acceptable, press N, and CE will take you through each option.
  337.  
  338.    In the first option, CE offers the original file name as the save-file
  339. name, but you can edit it, including adding a path to have it saved in
  340. a different directory. If you do not want to save the edited file at all,
  341. press Esc.
  342.  
  343.    In the second option, you may press Y to reuse the original date/time
  344. stamp of the file that was edited.
  345.  
  346.    In the third option, CE offers a default name to rename the original
  347. file, replacing the last character of the extension with an exclamation
  348. point. You can edit the name, or press Esc to avoid renaming the original file.
  349.  
  350.    In the fourth option, you may press Y to return to the editor.
  351.  
  352. Saving File in Mid-Session . . .
  353.  
  354.    The command Ctrl-S lets you save a file in mid-session while editing.
  355. This is prudent during a long session just to make sure you don't lose the
  356.  
  357.                            CMEditor - 8
  358. edit to a power failure. Ctrl-S provides a sequence and defaults similar to
  359. the exit sequence above except that you return to the editor instead
  360. of leaving.
  361.  
  362. Creating a New File with the Editor. . .
  363.  
  364.    A new file may be created from the main module by pressing the letter
  365. F ("new File") and entering a name for the new file in the data entry line.
  366. The new file will appear in the directory from which the F command was issued.
  367.  
  368. Help. . .
  369.  
  370.    A one-page help screen may be summoned on-line at any time in the
  371. editor with the command F1 or Alt-H, and exited with any keystroke.
  372.  
  373.                            CMEditor - 9